package com.yimi.ui;

import android.graphics.Camera;
import android.graphics.Matrix;
import android.view.animation.Animation;
import android.view.animation.Transformation;

public final class ao extends Animation {
	private Camera a;
	private float b;
	private float c;
	private float d = 0.0F;
	private int e;
	private float f = 360.0F;
	public ao(float paramFloat1, float paramFloat2, int paramInt)
	  {
	    this.b = paramFloat1;
	    this.c = paramFloat2;
	    this.e = paramInt;
	  }

	  public final void a(int paramInt)
	  {
	    this.e = paramInt;
	  }

	  protected final void applyTransformation(float paramFloat, Transformation paramTransformation)
	  {
	    float f1 = this.d;
	    float f2 = f1 + paramFloat * (this.f - f1);
	    float f3 = this.b;
	    float f4 = this.c;
	    Camera localCamera = this.a;
	    Matrix localMatrix = paramTransformation.getMatrix();
	    localCamera.save();
	    if ((0x1 & this.e) == 1)
	      localCamera.rotateX(f2);
	    if ((0x2 & this.e) == 2)
	      localCamera.rotateY(f2);
	    if ((0x4 & this.e) == 4)
	      localCamera.rotateZ(f2);
	    localCamera.getMatrix(localMatrix);
	    localCamera.restore();
	    localMatrix.preTranslate(-f3, -f4);
	    localMatrix.postTranslate(f3, f4);
	  }

	  public final void initialize(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
	  {
	    super.initialize(paramInt1, paramInt2, paramInt3, paramInt4);
	    this.a = new Camera();
	  }
}
